package com.cavalier.surtr.Exception;

import com.cavalier.surtr.enums.ErrorEnum;
import lombok.Getter;

/**
 * Created by archangle on 17/2/18.
 */
@Getter
public class CheckBusinessException extends RuntimeException {
    private String exceptionCode;//错误码

    private String exceptionMessage;//错误消息

    private Exception exceptionSource;//错误异常源

    public CheckBusinessException (ErrorEnum errorEnum){
        super(errorEnum.getDesc());
        this.exceptionCode=errorEnum.getCode();
    }
}
